<?
include("session.php");
include("../webkit/include/simple_db.php");
include("../users/ajax_base.php");

$db = new SimpleDB();
$action = $_GET["action"];
$callback = $_GET["callback"];
$json = "";

if($action == "do_confirm") {
	$dt =  date("Y-m-d H:i:s");
	$sql = "update jx_order set order_status=".$_GET['order_status'].", accept_text='". str_replace("'", "", $_GET['accept_text'])."',
	accept_time='$dt' where order_no='".$_GET["order_no"]."'";
	$db->query($sql);
	$json = "{'accept_time' : '$dt'}";
	write_history(&$db, "手机回单(".$_GET['accept_text'].")", $_GET['order_no']);
	echo $callback."(".$json.")";
}

?>